/*************引入模块*****************/
const conf=require('../../conf.js');
/*************定义变量*****************/
var yourApps   = conf.yourApps;
var devStart   = conf.dev.devStart;
var entry      = conf.entry;
var baseJs     = entry.baseJs;
var names      = baseJs?baseJs.names:[];
var after=entry.after?('/'+entry.after):'';
var base = "./src/projects/"+conf.projectName+'/';
var oname=yourApps[devStart];
/**************执行函数****************/
entry.js=entry.js?(entry.js+'/'):'';
/**************输出接口****************/
if(module.hot){
	module.hot.accept();
}
module.exports=(()=>{
	var o={};
	for(var key of names){
		o[key]=base + baseJs.base +"/" + key + ".js"
	}
	if(!conf.isSingle){
		for(var key of yourApps){
			o[key]=base+entry.js+key+after+'.js';
		}
	}else{
		o[oname] = base +entry.js + oname + after+".js";
	}
	return o;
})();
